﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Userprofile.aspx.cs" Inherits="Userprofile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form runat="server">
    <div class="bg-info">
                    <h1>Bruger indstillinger</h1>
                    <div class="form-group">
                        <asp:Label ID="lblNewName" runat="server" Text="Indsæt Brugernavn:" CssClass="col-sm-2 control-label" />
                        <div class="col-sm-3">
                            <asp:TextBox ID="txtNewName" runat="server" CssClass="form-control" />
                        </div>
                    </div>
                    <br />
                    <div class="form-group">
                        <br />
                        <asp:Label ID="lblNewPassword" runat="server" Text="Indsæt Password:" CssClass="col-sm-2 control-label" />
                        <div class="col-sm-3">
                            <asp:TextBox ID="txtNewPassword" runat="server" CssClass="form-control" />
                        </div>
                        <br />
                    </div>
                    <div>
                        <asp:CheckBoxList RepeatColumns="6" RepeatLayout="Table" ID="cblAllergies" runat="server" DataSourceID="AllergiesDataSource" DataTextField="Name" DataValueField="Id" AppendDataBoundItems="false" OnDataBound="cblAllergies_DataBound">
                        </asp:CheckBoxList>
                    </div>

                    <asp:ObjectDataSource ID="AllergiesDataSource" runat="server" SelectMethod="SelectAllAllergies" TypeName="WcfBackend.WcfFoodAndAllergiesClient"></asp:ObjectDataSource>


                    <br />

                    <asp:Button ID="btnCreate" CssClass="btn" runat="server" Text="Opdater bruger" OnClick="btnCreate_Click" /><br />

                </div>


</form>
 </asp:Content>